<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
   
  <meta name="keywords" content="郑浩枫,周芳怡,咸鱼郑某的博客" />
   
  <meta name="description" content="咸鱼郑某的博客" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
    为什么国内在线视频只有1080P？ |  岛
  </title>
  <meta name="generator" content="hexo-theme-yilia-plus">
  
  <link rel="shortcut icon" href="/favicon.ico" />
  
  
<link rel="stylesheet" href="/css/main.css">

  
  <script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>
  
  

  

<link rel="alternate" href="/atom.xml" title="岛" type="application/atom+xml">
</head>

</html>

<body>
  <div id="app">
    <main class="content">
      <section class="outer">
  <article id="post-为什么国内在线视频只有1080P" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  为什么国内在线视频只有1080P？
</h1>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E5%9C%A8%E7%BA%BF%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/" class="article-date">
  <time datetime="2020-04-02T12:42:05.000Z" itemprop="datePublished">2020-04-02</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>
  </div>

      
      
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> 字数统计:</span>
            <span class="post-count">1k字</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> 阅读时长≈</span>
            <span class="post-count">3分钟</span>
        </span>
    </span>
</div>

      
    </div>
    

    
    
    <div class="tocbot"></div>





    

    
    <div class="article-entry" itemprop="articleBody">
      
      

      
      <h3 id="YouTube都支持8K了，为啥国内还是1080P？"><a href="#YouTube都支持8K了，为啥国内还是1080P？" class="headerlink" title="YouTube都支持8K了，为啥国内还是1080P？"></a>YouTube都支持8K了，为啥国内还是1080P？</h3><span id="more"></span>
<blockquote>
<p>试一试这个4K的MMD<br>本站视频全部CDN加速，理论上只要你网速够快，电脑够好，都能播放。</p>
</blockquote>
<script type="text/javascript" src="/js/ckplayer.js"></script>  
<div class="videosamplex">  
 <video id="videoplayer"  
  src="https://web-1253780623.file.myqcloud.com/zhf-blog/video/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/%E3%80%90MMD%E3%80%91Classic%28MikuV4XDigitrevx%29.mp4"></video>  
</div>  
<script type="text/javascript" src="/js/gotoplayer.js"> </script>
<script> 
    gotoplayer("https://web-1253780623.file.myqcloud.com/zhf-blog/video/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/%E3%80%90MMD%E3%80%91Classic%28MikuV4XDigitrevx%29.mp4");
</script>


<p>上面这个视频才4K30帧，你播放够流畅吗？</p>
<h4 id="我将从带宽，用户，运营商三个角度来为你分析"><a href="#我将从带宽，用户，运营商三个角度来为你分析" class="headerlink" title="我将从带宽，用户，运营商三个角度来为你分析"></a>我将从带宽，用户，运营商三个角度来为你分析</h4><h2 id="1-从平均带宽水平考虑"><a href="#1-从平均带宽水平考虑" class="headerlink" title="1. 从平均带宽水平考虑"></a>1. 从平均带宽水平考虑</h2><p>根据speedtest.cn的数据来看</p>
<p>2019年第三季度，全国三大运营商固网宽带平均下载网速排名第一的是中国电信，为79.39Mbps；排名第二的是中国联通，为70.77Mbps；排名最后的是中国移动，为56.66Mbps。</p>
<ul>
<li>综合平均网速为：68.94Mbps</li>
</ul>
<p>数据来源：<a target="_blank" rel="noopener" href="https://www.speedtest.cn/article/51OpWlBZqrOnb9L4AdJ6">SpeedTest 2019年第三季度全国网速报告</a><br>以这个视频为例：<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/8K%E8%A7%86%E9%A2%91.png" alt="视频信息"><br>帧数60，分辨率7680X4320，码率21862KB/S<br>假设颜色深度24位，那么根据计算，每秒未压缩的视频大小为：<br>7680 X 4320 X 24 X 60 ÷ 8 ÷ 1024 ÷ 1024 ≈ 5695.3MB ≈ 45562.5Mbps</p>
<p>常用的H264（MPEG-4）编码压缩比为1:150左右</p>
<blockquote>
<p>（数据来源：<a href="%5Bhttps://www.techbang.com/posts/12833-flow-cut-in-half-h265-is-here-approved-by-the-international-telecommunication-union-next-generation-image-coding-a-little-more-beautiful?page=1%5D(https://www.techbang.com/posts/12833-flow-cut-in-half-h265-is-here-approved-by-the-international-telecommunication-union-next-generation-image-coding-a-little-more-beautiful?page=1)">电脑王</a>）<br><a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/H.264/MPEG-4_AVC">维基百科</a>中不知道为什么没有记载</p>
</blockquote>
<p> 45562.5Mbps÷150 = 303.75Mbps</p>
<h4 id="也就是说，家中宽带至少要达到300兆左右，才能流畅的播放8K视频。这与我们平均带宽68-94Mbps显然还差了一大截。"><a href="#也就是说，家中宽带至少要达到300兆左右，才能流畅的播放8K视频。这与我们平均带宽68-94Mbps显然还差了一大截。" class="headerlink" title="也就是说，家中宽带至少要达到300兆左右，才能流畅的播放8K视频。这与我们平均带宽68.94Mbps显然还差了一大截。"></a>也就是说，家中宽带至少要达到300兆左右，才能流畅的播放8K视频。这与我们平均带宽68.94Mbps显然还差了一大截。</h4><h2 id="2-从用户角度考虑"><a href="#2-从用户角度考虑" class="headerlink" title="2.从用户角度考虑"></a>2.从用户角度考虑</h2><p>根据ZDC中国互联网消费调研中心的：<a target="_blank" rel="noopener" href="http://diy.zol.com.cn/738/7380845.html"> 2019年显示器行业市场分析</a>报告来看<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/2019%E5%B9%B4%E6%98%BE%E7%A4%BA%E5%99%A8%E6%B6%88%E8%B4%B9%E4%BB%B7%E6%A0%BC.jpg" alt=" 2019年显示器产品价格比例分布"><br>图片来源同上</p>
<p>80%消费者购买的显示器大部分集中在500-1499元之间<br>我们在淘宝中搜索价格在这之间的显示器<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/%E6%98%BE%E7%A4%BA%E5%99%A8%E4%BB%B7%E6%A0%BC2.png" alt="显示器价格"></p>
<p>可以看到，该价格区间（不考虑杂牌二手等），最多能买到1920X1080（一线）至2560X1440（二线居多）的显示器<br>由此得出结论<br>国内有80%左右的显示器分辨率在2K及以下</p>
<p>那么用1080显示器播放4K8K视频和播放1080P视频有什么区别呢？</p>
<p>我这没有4K8K的显示器，但根据知乎等平台的业内人士分析得出的结论：<a target="_blank" rel="noopener" href="https://www.zhihu.com/question/37322363/answer/71717662">片源相同的情况下几乎没有区别</a></p>
<h4 id="可以看出，4K甚至8K分辨率在国内不是必要的。即使有了，满足的也是20-左右的高端用户。"><a href="#可以看出，4K甚至8K分辨率在国内不是必要的。即使有了，满足的也是20-左右的高端用户。" class="headerlink" title="可以看出，4K甚至8K分辨率在国内不是必要的。即使有了，满足的也是20%左右的高端用户。"></a>可以看出，4K甚至8K分辨率在国内不是必要的。即使有了，满足的也是20%左右的高端用户。</h4><h2 id="3-从视频服务商角度考虑"><a href="#3-从视频服务商角度考虑" class="headerlink" title="3.从视频服务商角度考虑"></a>3.从视频服务商角度考虑</h2><p>根据B站UP主“动动枪”的视频：“<a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1tE411c7H1/">这个4000万播放量的视频会给B站增加多少服务器成本？</a>“来看，B站2018年服务器与带宽成本达到4.69亿人民币，占总成本的1/4</p>
<p>以我博客《绝对领域》中的视频为例</p>
<ul>
<li><p>我们先以预设YouTube1080P导出一分钟视频<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/1080P%E8%A7%86%E9%A2%91%E5%AF%BC%E5%87%BA%E9%85%8D%E7%BD%AE.png" alt="YouTube1080P"></p>
</li>
<li><p>接着以预设YouTube4K导出视频<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/4K%E8%A7%86%E9%A2%91%E5%AF%BC%E5%87%BA%E9%85%8D%E7%BD%AE.png" alt="YouTube4K导出视频"></p>
</li>
</ul>
<p>文件大小比较：<br>视频大小分别为：89.5MB和232MB<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/%E5%A4%A7%E5%B0%8F%E5%AF%B9%E6%AF%94.png" alt="视频大小"></p>
<p>我们知道，为了加快客户端播放速度，视频服务商一般会购买CDN（Content Delivery Network）服务</p>
<blockquote>
<p>关于CDN，以后会专门写博客介绍的 </p>
</blockquote>
<p>以腾讯云为例，CDN价格在0.21元/GB左右<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/CDN%E4%BB%B7%E6%A0%BC.png" alt="腾讯云CDN价格"><br>也就是说1080P视频和4K视频同样播放100万次，价格差距在：<br>232 ÷ 1024 X 10000000 ÷ 0.21 - 89 ÷ 1024 X 1000000 ÷ 0.21<br>= 29326.046元</p>
<p>根据UP主动动枪的<a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1tE411c7H1/">另一个视频</a>根据财报可以看出，除芒果TV外，所有视频平台都在亏损，基本上在13亿-60亿之间。</p>
<p>为啥我不自己去看他们的财报呢？因为那是英文的。。。</p>
<h4 id="总而言之，增加4K8K视频无疑会大大增加亏损，仅仅为了满足那20-的观众实在不值得，毕竟哪个公司是在用爱发电呢？"><a href="#总而言之，增加4K8K视频无疑会大大增加亏损，仅仅为了满足那20-的观众实在不值得，毕竟哪个公司是在用爱发电呢？" class="headerlink" title="总而言之，增加4K8K视频无疑会大大增加亏损，仅仅为了满足那20%的观众实在不值得，毕竟哪个公司是在用爱发电呢？"></a>总而言之，增加4K8K视频无疑会大大增加亏损，仅仅为了满足那20%的观众实在不值得，毕竟哪个公司是在用爱发电呢？</h4><h2 id="其他原因"><a href="#其他原因" class="headerlink" title="其他原因"></a>其他原因</h2><p>4K8K相机价格高，视频片源少，文件大，存储成本高。<br>以2019年4K阅兵为例：</p>
<p>3个小时的阅兵视频文件大小达到了44.56GB<br><img src="https://web-1253780623.cos.ap-shanghai.myqcloud.com/zhf-blog/images/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/4K%E9%98%85%E5%85%B5.png" alt="4K阅兵"></p>
<p>这进一步增加了视频服务商的成本。</p>
<h4 id="所以到目前为止还没有多少网站能观看4K或8K视频也是在情理之中的。"><a href="#所以到目前为止还没有多少网站能观看4K或8K视频也是在情理之中的。" class="headerlink" title="所以到目前为止还没有多少网站能观看4K或8K视频也是在情理之中的。"></a>所以到目前为止还没有多少网站能观看4K或8K视频也是在情理之中的。</h4>
      
      <!-- reward -->
      
      <div id="reward-btn">
        打赏
      </div>
      
    </div>
    
    
      <!-- copyright -->
      
        <div class="declare">
          <ul class="post-copyright">
            <li>
              <i class="ri-copyright-line"></i>
              <strong>版权声明： </strong s>
              本博客所有文章除特别声明外，均采用 <a href="https://www.apache.org/licenses/LICENSE-2.0.html" rel="external nofollow"
                target="_blank">Apache License 2.0</a> 许可协议。转载请注明出处！
            </li>
          </ul>
        </div>
        
    <footer class="article-footer">
      
          
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://zhfhz.gitee.io/2020/%E4%B8%BA%E4%BB%80%E4%B9%88%E5%9B%BD%E5%86%85%E5%9C%A8%E7%BA%BF%E8%A7%86%E9%A2%91%E5%8F%AA%E6%9C%891080P/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%88%86%E6%9E%90/" rel="tag">分析</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%8A%80%E6%9C%AF/" rel="tag">技术</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%A7%86%E9%A2%91/" rel="tag">视频</a></li></ul>


    </footer>

  </div>

  
  
  <nav class="article-nav">
    
      <a href="/2020/Hexo%E8%A7%86%E9%A2%91%E6%92%AD%E6%94%BE/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            Hexo视频播放
          
        </div>
      </a>
    
    
      <a href="/2020/JetBrains%E5%85%A8%E5%AE%B6%E6%A1%B6%E6%BF%80%E6%B4%BB/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">JetBrains全家桶激活</div>
      </a>
    
  </nav>


  

  
  
<!-- valine评论 -->
<div id="vcomments-box">
    <div id="vcomments">
    </div>
</div>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src='https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js'></script>
<script>
    new Valine({
        el: '#vcomments',
        app_id: 'QExPaN3yEdYGXDLijnPKdTc8-MdYXbMMI',
        app_key: 'kyQzz6yRJkdRHcMm0tpOvSYY',
        path: window.location.pathname,
        notify: 'true',
        verify: 'false',
        avatar: 'mp',
        placeholder: '给我的文章加点评论吧~',
        recordIP: true
    });
    const infoEle = document.querySelector('#vcomments .info');
    if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
        infoEle.childNodes.forEach(function (item) {
            item.parentNode.removeChild(item);
        });
    }
</script>
<style>
    #vcomments-box {
        padding: 5px 30px;
    }

    @media screen and (max-width: 800px) {
        #vcomments-box {
            padding: 5px 0px;
        }
    }

    #vcomments-box #vcomments {
        background-color: #fff;
    }

    .v .vlist .vcard .vh {
        padding-right: 20px;
    }

    .v .vlist .vcard {
        padding-left: 10px;
    }
</style>

  

  
  
  

</article>
</section>
      <footer class="footer">
  <div class="outer">
    <ul class="list-inline">
      <li>
        &copy;
        2020-2021
        ZHF
      </li>
      <li>
        
        Powered by
        
        
        <a href="https://hexo.io" target="_blank">Hexo</a> Theme <a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>
        
      </li>
    </ul>
    <ul class="list-inline">
      <li>
        
        
        <span>
  <i>PV:<span id="busuanzi_value_page_pv"></span></i>
  <i>UV:<span id="busuanzi_value_site_uv"></span></i>
</span>
        
      </li>
      
      <li>
        <!-- cnzz统计 -->
        
        <script type="text/javascript" src=''></script>
        
      </li>
    </ul>
  </div>
</footer>
      <div class="to_top">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>
      </div>
    </main>
    <aside class="sidebar">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ayer-side.svg" alt="岛"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags/%E6%97%85%E8%A1%8C/">旅行</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" target="_blank" rel="noopener" href="https://500px.me/ZHFHZ">摄影</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/2019/about">关于我</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
    
<script src="/js/jquery-2.0.3.min.js"></script>


<script src="/js/share.js"></script>


<script src="/js/lazyload.min.js"></script>


<script>
  try {
    var typed = new Typed("#subtitle", {
      strings: ['面朝大海，春暖花开', '愿你一生努力，一生被爱', '想要的都拥有，得不到的都释怀'],
      startDelay: 0,
      typeSpeed: 200,
      loop: true,
      backSpeed: 100,
      showCursor: true
    });
  } catch (err) {
  }

</script>




<script src="/js/tocbot.min.js"></script>

<script>
  // Tocbot_v4.7.0  http://tscanlin.github.io/tocbot/
  tocbot.init({
    tocSelector: '.tocbot',
    contentSelector: '.article-entry',
    headingSelector: 'h1, h2, h3, h4, h5, h6',
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: 'main',
    positionFixedSelector: '.tocbot',
    positionFixedClass: 'is-position-fixed',
    fixedSidebarOffset: 'auto',
    onClick: (e) => {
      $('.toc-link').removeClass('is-active-link');
      $(`a[href=${e.target.hash}]`).addClass('is-active-link');
      $(e.target.hash).scrollIntoView();
      return false;
    }
  });
</script>



<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>

<script src="/js/ayer.js"></script>



<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>




<script src="/js/busuanzi-2.3.pure.min.js"></script>



<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>

    
  </div>
</body>

</html>